package util;

import java.io.IOException;
import java.util.Properties;

public final class Config {

	private static final String CONFIG_FILE = "cookie.properties";
	private static Properties prop = new Properties();

	public static String getProperty(String property) {
		try {
			prop.load(Thread.currentThread().getContextClassLoader()
					.getResourceAsStream(CONFIG_FILE));
		} catch (IOException e) {
			e.printStackTrace();
		}
		String r = prop.getProperty(property);
		return r;
	}

	private Config() {

	}
	
	public static void main(String[] args) {
		System.out.println(Config.getProperty("cookie"));
	}
}
